package com.felix.api.dubbo.service.impl;

import com.felix.api.dubbo.service.DeptDubboService;
import com.felix.mapper.DeptMapper;
import com.felix.pojo.Dept;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @program: dubboDemoParent
 * @ClassName DeptDubboServiceImpl
 * @description:
 * @author: yaoguipei
 * @create: 2022-01-20 11:54
 * @Version 1.0
 **/
@Service
public class DeptDubboServiceImpl implements DeptDubboService {

    @Autowired
    private DeptMapper deptMapper;
    @Override
    public List<Dept> findAllDept() {
        return deptMapper.findAll();
    }
}
